<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj = {a:"a属性"}
    obj.b = "b 属性"
    Object.defineProperty(obj,"c",{
        writable:false,
        value:"c属性",
        enumerable:false,
        configurable:false
    })

    //obj对象的a属性的特征 (属性描述符)
    var res = Object.getOwnPropertyDescriptor(obj,"c");
    console.log(res);



</script>
</html>